package com.soft.javase.day04.interfaces;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/21
 */
public class Manager extends Employee{
    private String level;

    public Manager(String name, String address, String id, double wage, int workAge, String level) {
        super(name, address, id, wage, workAge);
        this.level = level;
    }

    @Override
    public void raiseSalary() {
        setWage(getWage()*1.20);
    }

    @Override
    public String toString() {
        return "Manager{" +
                "name='" + getName() + '\'' +
                ", address='" + getAddress() + '\'' +
                ", id='" + getId() + '\'' +
                ", wage=" + getWage() +
                ", workAge=" + getWorkAge() +
                ", level='" + level + '\'' +
                '}';
    }
}
